package service;

import javax.persistence.EntityManager;

import entities.Broker;
import entities.JPAUtil;
import entities.User;

public class EditBrokerController {
	private EntityManager entityManager = JPAUtil.getCurrentEntityManager();
	
	
	
		public void editBrokerProfile (String username){
			entityManager.getTransaction().begin();
		Object broker;
		broker= entityManager.createQuery("select b from Broker b where username='"+username+"'").getSingleResult();

		System.out.println(broker.getClass().getName());
		}
		
//			entityManager.close();
//}
//
//	
//	
	
}
